import http from "@/utils/request";

export async function getPrinters(latitude: number, longitude: number): Promise<API.Result> {
    return http.get("printers", {params: {latitude, longitude, current: 1, pageSize: 50}});
}

export async function getPrinterObj(printerId: number): Promise<API.Result> {
    return http.get(`printers/${printerId}`);
}

// latitude, longitude, distance_in_km: float = 10.0, current: int = 1, pageSize: int = 10
export async function account() {
    return http.get("account");
}
